package bookstore.database.pojo;

import java.math.BigDecimal;
import java.sql.Timestamp;
import java.util.HashSet;
import java.util.Set;

/**
 * Orders entity. @author MyEclipse Persistence Tools
 */

public class Orders implements java.io.Serializable {

	// Fields

	private BigDecimal orderId;
	private Customer customer;
	private Timestamp orderDate;
	private BigDecimal status;
	private Set orderDetails = new HashSet(0);

	// Constructors

	/** default constructor */
	public Orders() {
	}

	/** minimal constructor */
	public Orders(BigDecimal orderId, Customer customer, Timestamp orderDate,
			BigDecimal status) {
		this.orderId = orderId;
		this.customer = customer;
		this.orderDate = orderDate;
		this.status = status;
	}

	/** full constructor */
	public Orders(BigDecimal orderId, Customer customer, Timestamp orderDate,
			BigDecimal status, Set orderDetails) {
		this.orderId = orderId;
		this.customer = customer;
		this.orderDate = orderDate;
		this.status = status;
		this.orderDetails = orderDetails;
	}

	// Property accessors

	public BigDecimal getOrderId() {
		return this.orderId;
	}

	public void setOrderId(BigDecimal orderId) {
		this.orderId = orderId;
	}

	public Customer getCustomer() {
		return this.customer;
	}

	public void setCustomer(Customer customer) {
		this.customer = customer;
	}

	public Timestamp getOrderDate() {
		return this.orderDate;
	}

	public void setOrderDate(Timestamp orderDate) {
		this.orderDate = orderDate;
	}

	public BigDecimal getStatus() {
		return this.status;
	}

	public void setStatus(BigDecimal status) {
		this.status = status;
	}

	public Set getOrderDetails() {
		return this.orderDetails;
	}

	public void setOrderDetails(Set orderDetails) {
		this.orderDetails = orderDetails;
	}

}